<template>
  <div class="stat-card">
    <h2 class="value">{{ value }}</h2>
    <p class="label">{{ label }}</p>
  </div>
</template>

<script setup>
defineProps({
  value: {
    type: [String, Number],
    required: true,
  },
  label: {
    type: String,
    required: true,
  },
});
</script>

<style lang="scss" scoped>
.stat-card {
  flex: 1;
  text-align: center;
  padding: 30px 0;
  min-width: 120px;

  .value {
    font-weight: 400;
    font-size: 30px;
    color: #000000;
    line-height: 35px;
    margin: 0;
  }

  .label {
    font-weight: 400;
    font-size: 14px;
    color: #999999;
    line-height: 16px;
    margin-top: 6px;
  }
}
</style>